﻿@model PhoneBilling.Models.ExtensionBakModel
@{
    ViewBag.Title = "原始话单查询";
    Layout = "~/Views/Shared/_Layout.cshtml"; 
}
<script type="text/javascript">       
$(document).ready(           
function () 
{  
    $(".myDatePickerClass1 ").datepicker({
        buttonImage: '@Url.Content("~/Content/image/calendar.gif")',               
        dateFormat: 'yy/mm/dd',                 
        showOn: 'button',               
        buttonImageOnly: true ,
        changeMonth:true,              
        changeYear:true,
    });   
    $(".myDatePickerClass2 ").datepicker({
        buttonImage: '@Url.Content("~/Content/image/calendar.gif")',               
        dateFormat: 'yy/mm/dd',                 
        showOn: 'button',               
        buttonImageOnly: true ,
        changeMonth:true,              
        changeYear:true,
    });
}       
);
</script>
@using (Html.BeginForm())
{
    <div>
        <div class="input-text">
             @Html.LabelFor(m => m.分机)
             @Html.TextBoxFor(m => m.分机)
        </div>
        <div class="input-text">
             @Html.LabelFor(m => m.起始时间)
             @Html.TextBox("起始时间", Model.起始时间.ToString("d"), new { @class = "myDatePickerClass1" }) 
             @Html.LabelFor(m => m.终止时间)
             @Html.TextBox("终止时间", Model.终止时间.ToString("d"), new { @class = "myDatePickerClass2" }) 
        </div>
        
        <p class="submit">
            <div>
            <input type="submit" value="查询" class="input-submit" onclick="searchClick()" />
            </div>
        </p>
    </div>
    <div>
    @{
    var grid = new WebGrid(source: Model.ExtensionList, canPage: false);
    }
    @grid.GetHtml(
    alternatingRowStyle: "bg",
    columns: grid.Columns
    (
        grid.Column("分机号码", "分机号码"),
        grid.Column("删除时间", "删除时间"),
        grid.Column("部组", "部门"),
        grid.Column("分组", "分组"),
        grid.Column("用户名", "用户名"),
        grid.Column("收费等级", "收费等级"),
        grid.Column("费率", "费率"),
        grid.Column("收费话类", "收费话类")
    )
)
    </div>
}

